<!--index.html-->
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <title>测试网页</title>
</head>
<body>
    <div id="test" style="width:100px;background-color:black">
        test
    </div>
    <div id="container">首页</div>
    <script>
        document.getElementById("test").style.width = window.outerWidth * 10 + "px"
    </script>
</body>
</html>